package com.github.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.base.domain.Log;
import com.github.base.dto.log.LogDTO;
import com.github.base.permission.DataPermission;
import com.github.base.vo.log.LogListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

//@Repository
//@InterceptorIgnore(illegalSql = "true")
public interface LogMapper extends BaseMapper<Log> {

    /**
     * 分页查询日志
     * @param page
     * @param dto
     * @return
     */
    Page<LogListVO> findListByPage(@Param("page") Page page, @Param("dto") LogDTO dto);

    @DataPermission(tableName = "data", columnName = "dept_id")
    List<Map> findAll();

}
